import request from '@/utils/request'

// 查询试卷分类列表
export function listClassification(query) {
  return request({
    url: '/system/testPaper/classification/list',
    method: 'get',
    params: query
  })
}

// 查询试卷分类详细
export function getClassification(testPaperClassificationId) {
  return request({
    url: '/system/testPaper/classification/' + testPaperClassificationId,
    method: 'get'
  })
}

// 新增试卷分类
export function addClassification(data) {
  return request({
    url: '/system/testPaper/classification',
    method: 'post',
    data: data
  })
}

// 修改试卷分类
export function updateClassification(data) {
  return request({
    url: '/system/testPaper/classification',
    method: 'put',
    data: data
  })
}

// 删除试卷分类
export function delClassification(testPaperClassificationId) {
  return request({
    url: '/system/testPaper/classification/' + testPaperClassificationId,
    method: 'delete'
  })
}


//-------------------------------------------------------------------
// 查询试卷汇总列表
export function listSummary(query) {
  return request({
    url: '/system/summary/list',
    method: 'get',
    params: query
  })
}

// 查询试卷汇总详细
export function getSummary(examinationPaperSummaryId) {
  return request({
    url: '/system/summary/' + examinationPaperSummaryId,
    method: 'get'
  })
}

// 新增试卷汇总
export function addSummary(data) {
  return request({
    url: '/system/summary',
    method: 'post',
    data: data
  })
}

// 修改试卷汇总
export function updateSummary(data) {
  return request({
    url: '/system/summary',
    method: 'put',
    data: data
  })
}

// 删除试卷汇总
export function delSummary(examinationPaperSummaryId) {
  return request({
    url: '/system/summary/' + examinationPaperSummaryId,
    method: 'delete'
  })
}
